package cn.wolfcode.shop.cloud.feign;

import cn.wolfcode.shop.cloud.common.Result;
import cn.wolfcode.shop.cloud.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MemberFeignClient implements MemberFeignApi {

    @Autowired
    private IUserService userService;

    @Override
    public Result<Boolean> refreshRedis(String token) {
        userService.refreshRedis(token);
        return Result.success(true);
    }
}
